import axios from "axios";

const https = axios.create({
    timeout:10000,
    //请求地址前缀
    baseURL:"https://creationapi.shbwyz.com"
})


//请求拦截器
https.interceptors.request.use(config=>{
    return config
},err=>{
    return Promise.reject(err)
})

//响应拦截器
https.interceptors.response.use(data=>{
    return data
},err=>{
    return Promise.reject(err)
})


export default https